'use strict';

const titbit =require('titbit');
const info ={
    name:'卢冰',
    sno:'2018012019'
}
const app = new titbit({
    debug:true,
    https:true,
    key:'/usr/local/cert/www.doubingpan.key',
    cert:'/usr/local/cert/www.doubingpan.cn.crt'
})

app.get('/',async c=>{
    c.res.body = 'lubing success'
});
app.get('/info',async c=>{
    c.res.body = JSON.stringify(info)
})

app.run(3434);